package com.eam.exampleprovider;

import com.kp.rpc.common.model.User;
import com.kp.rpc.common.service.UserService;
import jakarta.annotation.PostConstruct;
import kp.rpc.spring.boot.stater.annotation.KpRpcService;

/**
 * 用户服务实现类
 */
@KpRpcService
public class UserServiceImpl implements UserService {
    @PostConstruct
    public void init() {
        System.out.println("初始化");
    }

    @Override
    public User getUser(User user) {
        System.out.println("用户名：" + user.getName());
        return user;
    }
}
